﻿
using System;
using System.Collections;

namespace Xacml.Core.Policy
{
  public class ObligationCollection : ObligationCollectionReadWrite
  {
    public ObligationCollection(ObligationCollectionReadWrite items)
    {
      foreach (ObligationElementReadWrite elementReadWrite in (CollectionBase) items)
        this.Add((ObligationElementReadWrite) new ObligationElement(elementReadWrite.ObligationId, elementReadWrite.FulfillOn, elementReadWrite.AttributeAssignment));
    }

    public ObligationCollection()
    {
    }

    public override void Clear()
    {
      throw new NotSupportedException();
    }

    public override void RemoveAt(int index)
    {
      throw new NotSupportedException();
    }
  }
}
